package homework.api.day08._cp;

public class FinallyDemo {
    public static void main(String[] args) {

        try{
            String line = "null";
            System.out.println(line.length());
            return;
        }catch (NullPointerException e){
            System.out.println("空指针异常");
        }finally {
            System.out.println("在return前执行");
        }
    }
}
